/**
 * @filename:Scan Apr 3, 2024
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:TODO(追溯码实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_scan_code")
@ApiModel(value="t_scan_code对象", description="追溯码表")
public class Scan extends Model<Scan> {

	private static final long serialVersionUID = 1712114129537045L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "编号")
    private Long id;
    
    @TableField(value = "trayNum") 	
	@ApiModelProperty(name = "trayNum" , value = "追溯码信息")
    private String trayNum;
    
    @TableField(value = "userId") 	
	@ApiModelProperty(name = "userId" , value = "员工编号")
    private String userId;

    @TableField(value = "billNo")
    @ApiModelProperty(name = "billNo" , value = "单据编号")
    private String billNo;
    
    @TableField(value = "taskBillNo") 	
	@ApiModelProperty(name = "taskBillNo" , value = "关联任务单号")
    private String taskBillNo;
    
    @TableField(value = "createTime",fill = FieldFill.INSERT)
	@ApiModelProperty(name = "createTime" , value = "创建时间")
    private Date createTime;

    @TableField(value = "inStockNo")
    @ApiModelProperty(name = "inStockNo" , value = "入库单号")
    private String inStockNo;


    @TableField(value = "enable")
    @ApiModelProperty(name = "enable" , value = "是否启用")
    private Boolean enable;

	@Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
